package com.xzh.homeliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xzh.common.utils.PageUtils;
import com.xzh.homeliving.commodity.entity.BrandEntity;
import com.xzh.homeliving.commodity.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联表
 *
 * @author xzh
 * @email ranpis02@qq.com
 * @date 2024-01-30 13:14:49
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAll(CategoryBrandRelationEntity categoryBrandRelationEntity);

    /**
     * 根据category_id返回该分类关联的品牌信息
     */
    List<BrandEntity> getBrandByCategoryId(Long categoryId);
}

